package com.miaosha.ms_03.dao;

import com.miaosha.ms_03.domain.MiaoshaOrder;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

@Mapper
public interface MiaoshaOrderDao {

    @Insert("INSERT INTO miaosha_order (USER_ID,ORDER_ID,GOODS_ID) VALUES (#{userId},#{orderId},#{goodsId})")
    @Options(keyProperty = "id", keyColumn = "id", useGeneratedKeys = true)
    Integer insert(MiaoshaOrder mo);
}
